package upload

import (
	"tacitus/library/file"
)

var s file.Storage

func init() {
	s = file.NewAliStorage(file.AliConfig{
		EndPoint:        "oss-cn-beijing.aliyuncs.com",
		AccessKeyID:     "LTAIfSUblQykqXRK",
		AccessKeySecret: "EZGR7YwIh8CV4KcDiLYJvLLF7oabDW",
		BucketName:      "tacitus",
		StorageDir:"upload/",
		BrowseDir:"https://tacitus.oss-cn-beijing.aliyuncs.com/upload/",
	})
	//s = file.NewLocalStorage(file.LocalConfig{
	//	StorageDir:"file/upload/",
	//	BrowseDir:"http://127.0.0.1:8301/file/",
	//})
}